package com.ljy.jymail.authserver.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/*
* 配置springMvc的视图控制器viewController
*
* */
@Configuration
public class jymailWebConfig implements WebMvcConfigurer {



    //新增视图控制器
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        //registry(urlPath,setViewName)：控制中心
        //urlPath；url路径
        //setViewName:视图的名字
//      registry.addViewController("/login.html").setViewName("login");
        registry.addViewController("/register.html").setViewName("register");

    }
}
